.class public Les/ep;
.super Ljava/lang/Object;
.source "StripeSkuConfig.java"

# interfaces
.implements Les/bp;


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a()Ljava/lang/String;
    .locals 1

    const-string v0, "http://api.dkywddeipsds.com/pay/braintree/items?pkg=com.estrongs.android.pop&version=10085"

    return-object v0
.end method

.method public a(Ljava/lang/String;)Ljava/util/List;
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/List<",
            "Les/dp;",
            ">;"
        }
    .end annotation

    .line 1
    :try_start_0
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0, p1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    const-string p1, "ret"

    .line 2
    invoke-virtual {v0, p1}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result p1

    const/16 v1, 0xc8

    if-eq p1, v1, :cond_0

    .line 3
    invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;

    move-result-object p1

    return-object p1

    :cond_0
    const-string p1, "result"

    .line 4
    invoke-virtual {v0, p1}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object p1

    if-nez p1, :cond_1

    .line 5
    invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;

    move-result-object p1

    return-object p1

    .line 6
    :cond_1
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 7
    invoke-virtual {p1}, Lorg/json/JSONArray;->length()I

    move-result v1

    const/4 v2, 0x0

    :goto_0
    if-ge v2, v1, :cond_3

    .line 8
    invoke-virtual {p1, v2}, Lorg/json/JSONArray;->optJSONObject(I)Lorg/json/JSONObject;

    move-result-object v3

    if-eqz v3, :cond_2

    .line 9
    invoke-static {v3}, Les/dp;->b(Lorg/json/JSONObject;)Les/dp;

    move-result-object v3

    .line 10
    invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_2
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_3
    return-object v0

    .line 11
    :catch_0
    invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;

    move-result-object p1

    return-object p1
.end method

.method public b()Ljava/lang/String;
    .locals 1

    const-string v0, "{\n    \"ret\": 200,\n    \"result\": [\n        {\n            \"appId\": \"60\",\n            \"itemId\": \"ES_huawei_stripe_1month\",\n            \"type\": \"SUBSCRIPTION\",\n            \"duration\": 1,\n            \"durationUnit\": \"MONTH\",\n            \"freeDays\": 7,\n            \"country\": \"\",\n            \"sort\": 1,\n            \"versionStart\": \"1\",\n            \"versionEnd\": \"9999999\",\n            \"extension\": \"\",\n            \"baseItemId\": 0,\n            \"baseItemUnit\": 0,\n            \"selected\": false,\n            \"price\": 399.00,\n            \"discount\": 0,\n            \"baseItem\": \"\"\n        },\n        {\n            \"appId\": \"60\",\n            \"itemId\": \"ES_huawei_stripe_1year\",\n            \"type\": \"SUBSCRIPTION\",\n            \"duration\": 1,\n            \"durationUnit\": \"YEAR\",\n            \"freeDays\": 7,\n            \"country\": \"\",\n            \"sort\": 1,\n            \"versionStart\": \"1\",\n            \"versionEnd\": \"9999999\",\n            \"extension\": \"\",\n            \"baseItemId\": 0,\n            \"baseItemUnit\": 0,\n            \"selected\": true,\n            \"price\": 1999.00,\n            \"discount\": 0,\n            \"baseItem\": \"\"\n        },\n        {\n            \"appId\": \"60\",\n            \"itemId\": \"ES_huawei_stripe_forever\",\n            \"type\": \"INAPP\",\n            \"duration\": 1,\n            \"durationUnit\": \"FOREVER\",\n            \"freeDays\": 0,\n            \"country\": \"\",\n            \"sort\": 1,\n            \"versionStart\": \"1\",\n            \"versionEnd\": \"9999999\",\n            \"extension\": \"\",\n            \"baseItemId\": 0,\n            \"baseItemUnit\": 0,\n            \"selected\": true,\n            \"price\": 3999.00,\n            \"discount\": 0,\n            \"baseItem\": \"\"\n        }\n    ],\n    \"serverTime\": 1583581720052\n}\n"

    return-object v0
.end method
